const cart = document.querySelector(".cart");
    // cart.addEventListener("mouseenter" ,   function(e){

    // })


    cart.addEventListener("mouseenter" ,   (e)=>{
        //1 查找购物车列表
        const cartList = document.querySelector(".cartList");

        //2 
        cartList.style.display = 'block'

    })

    cart.addEventListener("mouseleave" ,   (e)=>{
        //1 查找购物车列表
        const cartList = document.querySelector(".cartList");

        //2 
        cartList.style.display = 'none'

    })